package pro.jiug.kWord.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
/**
 *
 */
//@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Hole implements Serializable {

    private static final long serialVersionUID=1L;

    private Integer index;

    private String holeTitle;

    private String method;

    private String result;

    private String reason;

    public Hole() {
    }

    public Hole(String holeTitle, String method, String result, String reason) {
        this.holeTitle = holeTitle;
        this.method = method;
        this.result = result;
        this.reason = reason;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getHoleTitle() {
        return holeTitle;
    }

    public void setHoleTitle(String holeTitle) {
        this.holeTitle = holeTitle;
    }

    public String getMethod() {
        return "整改措施："+method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getResult() {
        return "效果："+result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getReason() {
        if (StringUtils.isBlank(reason)){
            return "";
        }else{
            return "原因："+reason;
        }
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
